package com.lhy.admin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;


/**
 * <p>
 * 模型
 * </p>
 *
 * @author 86159
 * @date 2021-05-22 16:50:22
 * Copyright (c) 2021
 */
@Data
@TableName("t_user_role")
@Schema(description = "")
public class UserRole implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("role_id")
    private Long roleId;


    public static final String ID = "id";
    public static final String USER_ID = "user_id";
    public static final String ROLE_ID = "role_id";

}
